package router

import (
	"article-url/handlers"
	"github.com/gin-gonic/gin"
)

func Init() *gin.Engine {
	r := gin.Default()

	r.Static("/static", "./static")

	r.POST("/add", handlers.Add)
	r.GET("/list", handlers.List)

	return r
}
